package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWorkFinishOrderTemplateFieldVal;
import com.zb.extend.WorkFinishOrderTemplateFieldValExtend;

import java.util.List;

/**
 * <p>
 * 工单结单模板保存字段值表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-11-30
 */
public interface ZjWorkFinishOrderTemplateFieldValService extends IService<ZjWorkFinishOrderTemplateFieldVal> {

    /**
     * 根据工单结单模板表ID获取字段内容
     * @param workStatementTemplateIds 工单结单模板表ID
     * @return
     */
    List<WorkFinishOrderTemplateFieldValExtend> getByWorkStatementTemplateIds(List<Long> workStatementTemplateIds);

    /**
     * 根据工单ID获取结单字段信息
     * @param workIds 工单ID
     * @return
     */
    List<WorkFinishOrderTemplateFieldValExtend> getByWorkIds(List<Long> workIds);

    /**
     * 根据工单ID与固定的结单模板ID获取结单自定义字段内容
     * @param workId                             工单ID
     * @param finishTemplateId 结单模板ID
     * @return
     */
    List<WorkFinishOrderTemplateFieldValExtend> getPushFieldByWorkIdAndWorkStatementTemplateId(Long workId, Long finishTemplateId);

}
